<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes"/>
    <title>Scheme测试</title>
    <style>
        .list {
            text-decoration: none;
        }

        .list div:active {
            background-color: #f4f4f4;
        }

        .list div {
            background-color: transparent;
            padding: 7px 10px 7px 10px;
            display: flex;
            flex-direction: column;
            cursor: pointer;
        }

        .list div div {
            padding: 0px;
            color: blue;
        }

        .list div div:first-child {
            font-size: 17px;
        }

        .list div div:last-child {
            font-size: 15px;
        }

        .title {
            display: flex;
            flex-direction: row;
            align-items: center;
        }

        .title a {
            /*margin-left: auto;*/
            margin-left: 20px;
        }
    </style>
</head>
<body>

<div class="title">
    <h3>Dialog</h3>
    <a href="javascript:location.reload()"><h5>刷新</h5></a>
</div>

<div class="list">
    <div onclick="showAlter()">
        <div>alert</div>
        <!--            <div>tel:18695869152</div>-->
    </div>
    <div onclick="showConfirm()">
        <div>confirm</div>
        <!--            <div>sms:18695869152</div>-->
    </div>
    <div onclick="showPrompt()">
        <div>prompt</div>
        <!--            <div>mailto:lirundong@newcapec.net</div>-->
    </div>
    </a>
</div>

<script>
    function showAlter() {
        alert("这是Alert")
    }

    function showConfirm() {
        let res = confirm("这是Confirm")
        alert(res)
    }

    function showPrompt() {
        let res = prompt("这是prompt", "这是默认值")
        alert(res)
    }

</script>

</body>
</html>
